home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
United Public Domain Gold 2
/
United Public Domain Gold 2.iso
/
utilities
/
pu168a.dms
/
pu168a.adf
/
Scripts
/
motball.art
< prev
next >
Wrap
Text File
|
1991-08-30
|
1KB
|
49 lines
? "===================================================================\n",
" One bump and texture mapped sphere. The bump and texture maps are\n",
" the same picture.\n",
"===================================================================\n";
WHITE : color( RGB, [1.0, 1.0, 1.0] );
BLUE : color( RGB, [0.0, 0.0, 0.8] );
DULL : surface( PHONG, 0.8, 0.9, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0 );
SHINY : surface( PHONG, 0.3, 0.8, 0.8, 10.0, 0.0, 0.0, 0.0, 0.0, 0 );
vector BALLPOS = [0,0,0];
tmap1 : texturemap( "mottledorange.ilbm" );
bmap1 : bumpmap( "mottledorange.ilbm" );
!-------------------------------------------------------------------
!!
!! Our texture and bump mapped sphere...
!!
!-------------------------------------------------------------------
tm1 : texture( sphere, tmap1, BALLPOS-[0,0,400],
[0,0,1], [-1,0,0], 2,2, SMOOTH3|REPEAT );
bm1 : bump( sphere, bmap1, shiny, 6.0, BALLPOS-[0,0,400],
[0,0,1], [-1,0,0], 2,2, SMOOTH3|REPEAT|NEGATIVE );
sphere( ballpos, 400, tm1, bm1 );
!-------------------------------------------------------------------
!!
!! Light sources, background, camera...
!!
!-------------------------------------------------------------------
star( [-3000, -8000, 6000], [0.8, 0.8, 0.8 ], 1, NOSHADOWS );
ambient( [0,0,0], [0.2,0.2,0.2], [0,0,1], 0.0, 0.0 );
background( PLAIN, [0, 0, 0.1] );
camera'POS = [0,-2000, 0];
camera'TARGET = [0,0,0];
render;
END